<%@ page import="apralms.SystemIndex" %>



<div class="fieldcontain ${hasErrors(bean: systemIndexInstance, field: 'code', 'error')} required">
	<label for="code">
		<g:message code="systemIndex.code.label" default="Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="code" maxlength="10" required="" value="${systemIndexInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: systemIndexInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="systemIndex.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" maxlength="50" required="" value="${systemIndexInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: systemIndexInstance, field: 'scheme', 'error')} required">
	<label for="scheme">
		<g:message code="systemIndex.scheme.label" default="Scheme" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="scheme" name="scheme.id" from="${apralms.Scheme.list()}" optionKey="id" required="" value="${systemIndexInstance?.scheme?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: systemIndexInstance, field: 'system', 'error')} required">
	<label for="system">
		<g:message code="systemIndex.system.label" default="System" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="system" name="system.id" from="${apralms.System.list()}" optionKey="id" required="" value="${systemIndexInstance?.system?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: systemIndexInstance, field: 'parameter', 'error')} required">
	<label for="parameter">
		<g:message code="systemIndex.parameter.label" default="Parameter" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="parameter" name="parameter.id" from="${apralms.Parameter.list()}" optionKey="id" required="" value="${systemIndexInstance?.parameter?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: systemIndexInstance, field: 'known', 'error')} ">
	<label for="known">
		<g:message code="systemIndex.known.label" default="Known" />
		
	</label>
	<g:checkBox name="known" value="${systemIndexInstance?.known}" />
</div>

<div class="fieldcontain ${hasErrors(bean: systemIndexInstance, field: 'targetValue', 'error')} required">
	<label for="targetValue">
		<g:message code="systemIndex.targetValue.label" default="Target Value" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="targetValue" step="any" min="0.0" max="100000.0" required="" value="${systemIndexInstance?.targetValue}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: systemIndexInstance, field: 'limitValue', 'error')} required">
	<label for="limitValue">
		<g:message code="systemIndex.limitValue.label" default="Limit Value" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="limitValue" step="any" min="0.0" max="100000.0" required="" value="${systemIndexInstance?.limitValue}"/>
</div>

